package com.zhouyer.study.service.impl;

import com.zhouyer.study.servic.ServiceApi;
import org.apache.dubbo.config.annotation.Service;


/**
 * 服务接口实现类
 *
 * @author zhouyao
 * @version 1.0
 * @date 2021/11/22 5:02 下午
 */
@Service
public class ServiceApiImpl implements ServiceApi {
    @Override
    public String methodA(String name) {
        try {
            Thread.sleep((int) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "【methodA】的name" + name;
    }

    @Override
    public String methodB(String name) {
        try {
            Thread.sleep((int) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "【methodB】的name" + name;
    }

    @Override
    public String methodC(String name) {
        try {
            Thread.sleep((int) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "【methodC】的name" + name;
    }
}
